package com.rpc.provider.invoker.handler;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class RPCInvokeHandler implements InvocationHandler {
    private void before() {

    }

    private void after() {

    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        before();
        Object object = method.invoke(proxy, args);
        after();
        return object;
    }
}
